package com.fy.user.api;


import com.fy.common.api.CommonResult;
import com.fy.user.dto.EnterpriseDto;
import com.fy.user.dto.PersonalDto;
import com.fy.user.dto.SettledMerchantDto;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.context.annotation.Primary;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@Primary
@FeignClient(value = "domain-shop", path = "/show")
public interface DistributorSpotService {

    //个人分销商入驻
    @RequestMapping(value = "/addPersonal",method = RequestMethod.POST,consumes = "application/json")
    int addPersonal(@RequestBody PersonalDto personalDto);

    //企业分销商入驻
    @RequestMapping(value = "/addEnterprise",method = RequestMethod.POST,consumes = "application/json")
    int addEnterprise(@RequestBody EnterpriseDto enterpriseDto);

    //景区商户入驻
    @RequestMapping(value = "/enter",method = RequestMethod.POST,consumes = "application/json")
    int enter(@RequestBody SettledMerchantDto settledMerchantDto);
}
